﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="AdminManuList.ascx.cs" Inherits="smartphone.UserControls.AdminManuList" %>

<div class="adminTable">
    <form id="AdminViewManu" runat="server">
        <div class="adminTitle">
            <asp:Label ID="LabelInform" runat="server" Text="Cập nhật thông tin hãng sản xuất"></asp:Label>
        </div>
        <asp:GridView ID="GridViewManu" runat="server" DataKeyNames="maHang" Width="100%" AutoGenerateColumns="False" OnRowEditing="GridViewManu_RowEditing" OnRowCancelingEdit="GridViewManu_RowCancelingEdit" OnRowDeleting="GridViewManu_RowDeleting" OnRowUpdating="GridViewManu_RowUpdating">
            <Columns>
                <asp:BoundField DataField="tenHang" HeaderText="Tên hãng" SortExpression="tenHang" />
                <asp:CommandField ShowEditButton="True" HeaderText="Thao tác" CancelText="Hủy" DeleteText="Xóa" EditText="Sửa" UpdateText="Lưu" CausesValidation="false" />
                <asp:ButtonField CommandName="Delete" HeaderText="Xóa" ShowHeader="True" Text="Xóa" />
            </Columns>
        </asp:GridView>

        <div class="adminTitle">
            <asp:Label ID="LabelInform2" runat="server" Text="Thêm hãng sản xuất"></asp:Label>
        </div>
        <div class="createManufacturer">
            <label>Nhập tên hãng </label><asp:TextBox ID="TxtManuName" runat="server" EnableViewState="False"></asp:TextBox>
            <asp:Button ID="BtCreateManufacturer" CssClass="adminButton" runat="server" Text="Thêm hãng" OnClick="BtCreateManufacturer_Click" />
            <p>
                <asp:RequiredFieldValidator ID="RequiredFieldValidatorManuName" CssClass="adminInputError" runat="server" ErrorMessage="Bạn phải nhập tên hãng" ControlToValidate="TxtManuName"></asp:RequiredFieldValidator>
            </p>
        </div>

    </form>
    
</div>